#!/bin/bash
echo  -e "\e[1;31m [netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'] \e[0m"

netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
 
